package com.dayuanit.dy8.mall.springbootmall.mapper;

import com.dayuanit.dy8.mall.springbootmall.entity.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CartMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Cart record);

    int insertSelective(Cart record);

    Cart selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Cart record);

    int updateByPrimaryKey(Cart record);

    Cart getCart(@Param("userId") Integer userId, @Param("commoId") Integer commoId);

    List<Cart> listCart(@Param("userId") Integer userId);
}